@import './code';

$primaryColor: #646cff;

// 选
:root {
  --vp-c-green: #{$primaryColor};
  --vp-c-green-light: #535bf2;
  ;
  --vp-c-green-lighter: #3e93fb;

  --vp-c-green-dark: #046ae7;
  --vp-c-green-darker: #0362d7;
  --vp-layout-max-width: 90%;
  --vp-sidebar-bg-color: #fff;
  --vp-sidebar-width: 240px;
  --prism-block-padding-y: 1.2em;

  --vp-c-indigo-1: #{$primaryColor};
  --vp-c-indigo-3: #{$primaryColor};
  --vp-c-bg-alt: var(--el-fill-color-light);
  --vp-c-brand-2: #535bf2;
}

.dark {
  --vp-sidebar-bg-color: #161618;
}

.VPContent .VPDoc.has-aside .content-container {
  max-width: 1200px;
}

.tagline-link {
  font-weight: 500;
  color: var(--vp-c-brand);
  text-decoration-style: dotted;
  transition: color 0.25s;
}

.VPSidebar {
  .nav {
    .item {
      h2.text {
        font-size: 18px;
      }
    }

    .items {
      padding-left: 10px;
    }
  }
}

.vp-doc {

  .el-pager li {
    margin: 0;
  }

  .el-sub-menu .el-menu {
    margin-left: 0;
  }

  .el-descriptions__table {
    margin: 0;
  }

  h2 {
    border-top: 0;
  }

  .el-link {
    color: var(--el-link-text-color);
  }

  .el-link {
    text-decoration: none;
  }

  .el-table__header,
  .el-table__body {
    margin: 0;
  }

  .el-table tr {
    border-top: 0;
  }

  .el-menu-item {
    margin-top: 0;
  }

  th,
  td {
    border: 0;
    min-width: 92px;
  }

  tr:nth-child(2n) {
    background-color: unset;
  }

  tr:nth-last-child(1) {
    border-bottom: 1px solid var(--vp-c-divider);
  }

  table {
    display: table;
    width: 100%;

  }

  .el-table {
    table {
      display: block;
    }
  }


  .tip a {
    text-decoration: underline;
  }

  .el-text a {
    text-decoration: none;
  }

  .custom-block.warning a {
    color: var(--vp-c-brand-1);
  }
}

.copyright {
  white-space: pre;

  .copyright-link {
    color: var(--vp-c-brand);
  }
}

.miit-link {
  display: none;
}

.design-iframe {
  width: 100%;
  height: 80vh;
  border: 0;
  margin-top: 20px;
}